home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-05-02 | 2.2 KB | 118 lines | [TEXT/MPS ] |
- /*
- File: AppletalkSampleScript.r
-
- Contains: Script to create an AppleTalk Installer
- This is a Sample script that does an AppleTalk-
- only installation.
-
- Copyright: © 1991 by Apple Computer, Inc., all rights reserved.
-
- */
-
- #include "InstallerTypes.r"
- #include "Types.r"
-
- #define SystemFile 1
- #define System6Installation 2
- #define System7Installation 3
- #define System7Error 4
- #define EasyInstall 5
- #define NoSystemError 6
- #define aSystem6 7
- #define aSystem7 8
-
- #define AtlkFolder "AppleTalk Installer:AppleTalk Files"
- #define ATCustomShowFlag showsOnCustom
-
- resource 'vers' (1, purgeable)
- {
- $56, 0, release, 0,
- verUS,
- "56.0",
- "56.0, © Apple Computer, Inc. 1990-1991"
- };
-
- resource 'vers' (2, purgeable)
- {
- $56,0, release, 0,
- verUS,
- "56.0",
- "AppleTalk Installer"
- };
-
- resource 'infs' (SystemFile)
- {
- 'zsys', /* File Type */
- 'MACS', /* File Creator */
- 0x00, /* Creation Date */
- noSearchForFile,
- TypeCrNeedNotMatch,
- "special-macs:System" /* path name */
- };
-
- #include "AppleTalkInstall.r"
-
- resource 'inrl' (System6Installation)
- {
- format0
- {{
- checkFileVersion {SystemFile, 6, 4, release, 0},
- addAssertion {{aSystem6}}
- }};
- };
-
- resource 'inrl' (System7Installation)
- {
- format0
- {{
- checkFileVersion {SystemFile, 7, 0, beta, 1},
- addAssertion {{aSystem7}}
- }};
- };
-
- resource 'inrl' (NoSystemError)
- {
- format0
- {{
- reportVolError
- {
- "The selected disk named '^0' has no installed System. AppleTalk cannot be"
- " installed on this disk. Please click Switch Disk to choose a different disk or"
- " insert a floppy disk."
- }
- }};
- };
-
- resource 'inrl' (System7Error)
- {
- format0
- {{
- checkAllAssertions{{aSystem7}},
- reportVolError
- {
- "The selected disk named '^0' has System 7 installed. "
- "You must install AppleTalk using the installer disk that came with your System. "
- "Please click Switch Disk to choose a different disk or insert a floppy disk."
- }
- }};
- };
-
- resource 'inrl' (EasyInstall)
- {
- format0
- {{
- AddUserDescription {"Click Install to place\n"},
- AddUserDescription {"• AppleTalk version 56.0\n"},
- addPackages {{NPak6ATalk}}
- }};
- };
-
-
- resource 'infr' (0)
- {
- format0
- {{
- pickFirst, {System7Installation, System6Installation},
- pickFirst, {System7Error,EasyInstall,NoSystemError}
- }};
- };